package b1.project.common.config;

import com.mybatisflex.core.keygen.IKeyGenerator;

import java.util.UUID;

/**
 * 自定义主键生成
 *
 * @author sun
 * @date 2024/9/27 15:29
 */
public class UUIDKeyGenerator implements IKeyGenerator {
    @Override
    public Object generate(Object entity, String keyColumn) {
        return UUID.randomUUID().toString().replace("-", "");
    }
}
